CUR_ROOT    := $(shell pwd)
PDT_ROOT    := $(CUR_ROOT)/..
include $(PDT_ROOT)/build/base.mak

ifeq ($(CONFIG_SNS0_AHD_MIPI),y)
SUBDIRS := ahd_vio
else ifeq ($(CONFIG_SERDES0),y)
SUBDIRS := serdes_vio
else
SUBDIRS := vio
endif
ifeq ($(CONFIG_SCREEN),y)
SUBDIRS += lcd
endif
ifeq ($(CONFIG_TOUCHPAD),y)
SUBDIRS += touchpad
endif

.PHONY: all $(SUBDIRS) clean

all:$(SUBDIRS)

$(SUBDIRS):
	@make -C $@||exit $?

clean:
	@for MOD in $(SUBDIRS);do\
		make clean -C $$MOD||exit $?;done
